package com.study.spmongodb.wwj.thread.char02;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/5 22:02
 */
public class TickWindowRunnable implements Runnable {
    private int index = 0;

    private final static int MAX = 50;

    @Override
    public void run() {
        while (index <= MAX) {

            System.out.println(Thread.currentThread().getName()
                    + " 的号码是" + index++);
        }
    }
}
